<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="hello">
			<p>{{message}}</p>
			<p>使用v-html指令显示:<span v-html="message"></span></p>
		</div>
		
		
		<script>
			const {createApp}=Vue
			
			createApp({
				data(){
					return {
						message: '<span style="color:red">hello world</span>'
					}
				}
			}).mount('#hello')
		</script>
	</body>
</html>
